Release 10.1A: OpenEdge Development:
ADM and SmartObjects


SmartDataObjects

The SmartDataObject accesses a database directly. It transfers rows, as defined by its database query, to a temp-table called RowObject, one batch at a time. (Fields from one or more tables can be joined into a single result table.) For a discussion of the RowObject temp-table, see the "SmartDataObject query and update operations" section.

Once the RowObject temp-table is built, the SmartDataObject presents its rows to SmartDataViewers, SmartDataBrowsers, and other client objects. The SmartDataObject thus insulates the client objects from the database specifics.

When a SmartDataObject reads a data set into a RowObject temp-table, it provides essentially a snapshot of the current state of the data set, often called a view. The RowObject temp-table does not necessarily reflect updates to the data set that are made by other users in another session; however, any code that executes the openQuery procedure on the data set automatically refreshes the RowObject temp-table with the latest data. Alternately, you can use the refreshRow function on the current row to get the latest data.

You can customize various field-related properties of a SmartDataObject to meet your own application needs:

SmartDataObjects support update validation logic beyond that defined in the Data Dictionary or in database triggers. For more information, see Chapter 7, " Developing Your Application’s Business Logic."


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095